package com.think.admin.web.mapper;

import com.think.admin.model.dto.ResourceDTO;
import com.think.admin.model.query.ResourceQuery;
import com.think.common.web.mapper.SuperMapper;
import com.think.dao.entity.Resource;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 资源表 Mapper 接口
 * </p>
 *
 * @author xwj
 * @since 2019-04-08
 */
public interface ResourceMapper extends SuperMapper<Resource> {

    /**
     * 查询资源列表 - 不分页
     *
     * @param resourceQuery
     * @return java.util.List<com.think.admin.cient.dto.ResourceDTO>
     * @author xwj
     * @data 2019/4/10
     */
    List<ResourceDTO> selectResource(@Param("resourceQuery") ResourceQuery resourceQuery);

    /**
     * 根据ID获取资源信息
     *
     * @param id 
     * @return com.think.admin.cient.dto.ResourceDTO
     * @author xwj
     * @data 2019/4/10
     */
    ResourceDTO getResourceById(@Param("id") String id);
}
